package com.shunda.ysdgj.model.vo.goods;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class GoodsSpuVo {
    private Long id;

    @Schema(description = "管理员ID")
    private Long sysUserId;

    @Schema(description = "店铺ID")
    private Long shopId;

    @Schema(description = "产品标题")
    private String spuTitle;

    @Schema(description = "产品详情图片")
    private String spuImages;

    @Schema(description = "产品分类")
    private Long spuCategoryId;

    @Schema(description = "一级分类名称")
    private String firstCategoryName;

    @Schema(description = "二级分类名称")
    private String secondCategoryName;

    @Schema(description = "三级分类名称")
    private String thirdCategoryName;

    @Schema(description = "产品品牌")
    private Long spuBrandId;

    @Schema(description = "品牌名称")
    private String brandName;

    @Schema(description = "产品可搜索规格品类")
    private Long spuSpecCategoryId;

    @Schema(description = "产品不可搜索规格品类")
    private Long spuSpecNoSearchCategoryId;

    @Schema(description = "规格品类名称")
    private String specCategoryName;

    @Schema(description = "上下架 1上架 0下架")
    private Integer spuSaleable;

    @Schema(description = "是否有效 1有效 0无效 设为无效的商品只能进行删除操作")
    private Integer spuValid;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime created;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime updated;

    private Integer version;
}
